import _00GraphFuc as gf
#计算图的出度与入度

V=range(6)
E={(0,1),(3,2),(5,4),(1,3),(3,0),(3,1),(1,4),(1,5),(2,0),(0,3),(0,5),(2,5),
   (4,3),(5,3),(5,0),(5,1),(1,0),(3,4),(4,2),(4,0)}
[d,di,do]=gf.degreeset(V,E)
s=sum(d)
gf.drawdigraph(E)
print("s,d,di,do",s,d,di,do)
